/* model */
import Field from '@model/entity/Field'
import { FieldTypeMappingEnum } from '@model/enum/FieldMappingEnum'
import { t } from '@src/locales'

enum CreateConnectorFieldNameEnum {
  Name = 'name',
  Description = 'description',
  Id = 'id'
}

const CreateConnectorFields: Field[] = [
  {
    fieldName: CreateConnectorFieldNameEnum.Name,
    formType: FieldTypeMappingEnum.Text,
    displayName: t('common.connector.fields.triggerName.displayName'),
    placeHolder: t('common.connector.fields.triggerName.placeholder'),
    isNull: 0,
    maxlength: 20
  },
  {
    fieldName: CreateConnectorFieldNameEnum.Description,
    formType: FieldTypeMappingEnum.Textarea,
    displayName: t('common.connector.fields.triggerDescription.displayName'),
    placeHolder: t('common.connector.fields.triggerDescription.placeholder'),
    isNull: 1,
    maxlength: 500
  }
]

export {
  CreateConnectorFields,
  CreateConnectorFieldNameEnum
}
